#include"tcpClient.hpp"
#include<memory>

using namespace Client;
void my_errno(char* message){
    cout<<message<<"使用有误，请加上IP,端口号"<<endl;

}
int main(int argc,char* argv[]){
    if(argc != 3){
        my_errno(argv[0]);
        exit(1);
    }

    
    string ip = argv[1];
    uint16_t port = atoi(argv[2]);

    unique_ptr<tcpClient> ret(new tcpClient(ip,port));
    ret->initClient();
    ret->start();
      




    return 0;

}